package com.lax.advertmgt.exception;

public class MgtException extends PlatformException {

    private static final long serialVersionUID = 1L;

    /**
     * 创建异常
     *
     * @param exprInfo
     * @return
     */
    public static MgtException instance(MgtExprInfo exprInfo, String... paramData) {
        return new MgtException(exprInfo.getCode(), buildMsg(exprInfo.getMsg(), paramData));
    }

    public MgtException(String code, String msg) {
        super(code, msg);
    }

}
